Pelago\Emogrifier D

Total Complexity 168
Dependencies 9
Dependents 0
Total lines 1,757
Lines of code 759
Logical lines of code 374
Comment lines 750
Methods 69
Properties 14

Methods 69

Method Rating Maintainability Complexity Lines of code
process()
A
46 8 38
parseCssRules()
A
46 8 36
parseNth()
A
47 8 35
generateStyleStringFromDeclarationsArrays()
S
50 7 28
handleXpathQueryWarnings()
S
53 6 23
splitCssAndMediaQuery()
S
47 5 38
getNodesToExclude()
S
57 5 17
copyUninlinableCssToStyleNode()
S
56 5 17
removeUnprocessableTags()
S
61 5 13
addContentTypeMetaTag()
S
55 4 20
parseCssDeclarationsBlock()
S
57 4 17
getCssSelectorPrecedence()
S
56 4 16
translateCssToXpath()
S
50 3 29
existsMatchForCssSelector()
S
62 4 11
translateNthOfType()
S
54 3 24
translateNthChild()
S
54 3 24
removeImportantAnnotationFromNodeInlineStyle()
S
55 3 20
extractImportAndCharsetRules()
S
57 3 18
copyInlinableCssToStyleAttribute()
S
59 3 15
sortBySelectorPrecedence()
S
66 4 7
getCssRuleMatches()
S
58 3 15
getCssFromAllStyleNodes()
S
62 3 12
replaceUnmatchableNotComponent()
S
62 3 11
setHtml()
S
65 3 9
normalizeStyleAttributes()
S
59 2 15
ensureExistenceOfBodyElement()
S
63 3 10
normalizeStyleAttributesOfAllNodes()
S
68 3 8
fillStyleAttributesWithMergedStyles()
S
61 2 13
translateCssToXpathPassWithMatchClassAttributesCallback()
S
54 1 24
existsMatchForSelectorInCssRule()
S
69 2 7
matchClassAttributes()
S
76 2 3
removeUnmatchablePseudoComponents()
S
59 1 15
ensureDocumentType()
S
68 2 7
matchIdAttributes()
S
76 2 3
__construct()
S
71 2 6
removeExcludedSelector()
S
73 2 5
removeAllowedMediaType()
S
73 2 5
removeUnprocessableHtmlTag()
S
70 2 6
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
assertExistenceOfHtml()
S
72 2 5
createRawDomDocument()
S
63 1 11
getHeadElement()
S
80 1 3
translateCssToXpathPass()
S
72 1 6
translateCssToXpathPassInline()
S
72 1 6
emogrifyBodyContent()
S
74 1 5
emogrify()
S
74 1 5
generateStyleStringFromSingleDeclarationsArray()
S
80 1 3
matchClassAttributesInline()
S
71 1 5
getBodyElement()
S
80 1 3
renderBodyContent()
S
72 1 5
render()
S
76 1 4
setCss()
S
81 1 3
getDomDocument()
S
82 1 3
removeSelfClosingTagsClosingTags()
S
77 1 3
ensurePhpUnrecognizedSelfClosingTagsAreXml()
S
69 1 7
createUnifiedDomDocument()
S
77 1 4
attributeValueIsImportant()
S
77 1 3
prepareHtmlForDomConversion()
S
73 1 5
getAllNodesWithStyleAttribute()
S
80 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
removeCssComments()
S
78 1 3
clearAllCaches()
S
68 1 9
addStyleElementToDocument()
S
66 1 8
purgeVisitedNodes()
S
77 1 4
addUnprocessableHtmlTag()
S
80 1 3
addAllowedMediaType()
S
80 1 3
addExcludedSelector()
S
80 1 3
setDebug()
S
81 1 3